package com.chunxiadong.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @auther QiuShangcheng
 * @create 2021/6/6
 */
/*博客*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Blog {
    private Integer id;
    private Integer userId;
    private Integer typeId;
    private String title;
    private String content;
    private String firstPicAddr;//首张图片
    private String flag;//标记
    private Integer views;//浏览数
    private Boolean isAppreciation=false;//是否支持赞赏
    private Boolean isShare=false;//是否支持转载
    private Boolean isComment=false;//是否支持评论
    private Boolean isPublish;//是否发布还是保留草稿
    private Boolean isRecommend=false;//是否推荐
    private String description;//描述
    private Date createTime;
    private String updateTime;
    private Type type;//一篇博客对应一种分类
    private List<Tag> tagList;//一篇博客可以有多个标签
    private User user;//发布者
    private List<Comment> commentList;//一篇博客有可有多条评论


}
